/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package hcbankatm;

import com.hcbank.classes.Account;
import com.hcbank.sessionbeans.AccountSessionBeanRemote;
import com.hcbank.sessionbeans.SimpleBeanToTestRemote;
import java.util.Date;
import java.util.List;
import javax.ejb.EJB;

/**
 *
 * @author NHAHV
 */
public class Main {
   
    @EJB
    private static AccountSessionBeanRemote accountSessionBean;
    
    

    
    
    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        Account acc = new Account(5, "123-123-123", "123",true,3);
//        Account AddAccount = accountSessionBean.AddAccount(acc);
//        List<Account> GetAllAccount = accountSessionBean.GetAllAccount();
        acc.setPin("9999");
        Account UpdateAccount = accountSessionBean.UpdateAccount(acc);
        List<Account> GetAllAccount1 = accountSessionBean.GetAllAccount();
     
                
        
    }
}
